<!DOCTYPE html>
<html>
<head>
    <title>基础</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <#if shiro.hasPermission(":ap:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </
        #if>
        <#if shiro.hasPermission(":ap:update")>
        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </
    #if>
    <#if shiro.hasPermission(":ap:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</
#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">错误代码</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.statusNo" placeholder="错误代码"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.type" placeholder=""/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">user标识</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.user" placeholder="user标识"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.apId" placeholder="基站id"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">该基站在此user中的序号，用于基站屏幕显示</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.sequence" placeholder="该基站在此user中的序号，用于基站屏幕显示"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站状态，Online:在线；Offline:掉线</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.status" placeholder="基站状态，Online:在线；Offline:掉线"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">监听基站的端口</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.listenPort" placeholder="监听基站的端口"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站上线时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.onlineBeginTime" placeholder="基站上线时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站版本号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.version" placeholder="基站版本号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站当前状态。transmitting:工作中；standby:闲置中</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.workMode"
                       placeholder="基站当前状态。transmitting:工作中；standby:闲置中"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站mac地址</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.mac" placeholder="基站mac地址"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">上一次工作时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.lastWorkTime" placeholder="上一次工作时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">子网掩码</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.netmask" placeholder="子网掩码"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站序列号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.sn" placeholder="基站序列号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站网关</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.gateway" placeholder="基站网关"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站的描述信息</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.desc" placeholder="基站的描述信息"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">当前为该基站分配的信道</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.channel" placeholder="当前为该基站分配的信道"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站的ip地址</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.ip" placeholder="基站的ip地址"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站所属企业id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="ap.compId" placeholder="基站所属企业id"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                   @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules//ap.js?_${.now?long}"></script>
</body>
</html>